package com.aaa.bbb.mymaintain.dao;

import com.aaa.bbb.mymaintain.entity.Account;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author max
 * @since 2023-11-03
 */
public interface AccountDao extends BaseMapper<Account> {
    @Select({
            "<script> " +
                    "SELECT "   +
                    "    post "   +
                    "FROM  employee "   +
                    "WHERE  1=1 " +
                    "  <if test='userName != null and userName != \"\" '>" +
                    "     AND username = #{userName} " +
                    "  </if>"   +
                    "</script>"
    })
    public Map<String, String> selectPost(@Param("userName") String userName);
}
